﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace _0812159_0812164
{
    public class Location
    {
        private string username;

        public string Username
        {
            get { return username; }
            set { username = value; }
        }
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        private int idcategory;

        public int Idcategory
        {
            get { return idcategory; }
            set { idcategory = value; }
        }
        private float latitude;

        public float Latitude
        {
            get { return latitude; }
            set { latitude = value; }
        }
        private float longitude;

        public float Longitude
        {
            get { return longitude; }
            set { longitude = value; }
        }
        private int idlocation;

        public int Idlocation
        {
            get { return idlocation; }
            set { idlocation = value; }
        }
        private string address;

        public string Address
        {
            get { return address; }
            set { address = value; }
        }
        private string description;

        public string Description
        {
            get { return description; }
            set { description = value; }
        }

        public void Copy(Location src)
        {
            this.Idcategory = src.Idcategory;
            this.Idlocation = src.Idlocation;
            this.Latitude = src.Latitude;
            this.Longitude = src.Longitude;
            this.Name = src.Name;
            this.Username = src.Username;
        }

        public string ToXmlString()
        {
            string str="";
            return str;
        }
    }
}
